<?php
defined('BY_JYA') or exit('error');
/*
	设置留言
*/
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
cfc('core')->checklogin();
if($_RQ['op']=='main'){
	$return['member']=$this->get('member',array('mid'=>$_SESSION['uid']),array('message'));
	exi($return);
}
if($_RQ['op']=='post'){
	$post=get_postdata();
	if(!$post['message']){
		exi('请设置留言！','error');
	}
	
	$this->update('member',array('message'=>$post['message']),array('mid'=>$_SESSION['uid']));
	exi('设置成功！','','goback');
}